package whu.cn.whushare.util;

import android.os.Environment;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * User: TangCan
 * Date: 13-1-23
 * Time: 上午10:18
 */
public class FileManager {
    private static final String TAG = "FileManager";

    public static final String CACHE_IMAGE_PATH_NEW = "/image/";
    public static final String CACHE_HTTP_PATH = "/cache/";
    public static final String APK_PATH = Environment.getExternalStorageDirectory().toString() + "/whuHR/apk/";
    public static final String APK_NAME = "whuHR.apk";

    public static void makeDirs(String dirPath) {
        File dir = new File(dirPath);
        if (!dir.exists()) {
            if (dir.getParentFile().exists())
                dir.mkdirs();
            else
                makeDirs(dir.getParent());
        }
    }

}
